﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JinfuyuanProject.Entity;

namespace JinfuyuanProject.Repository.Interface
{
    public interface IEntryRepository
    {
        IQueryable<Entry> GetList();

        Entry GetModel(int Id);

        bool Delete(Entry entry);

        int Insert(Entry entry);

        bool Update(Entry entry);

        IEnumerable<T> QueryBySql<T>(string sql);
        IEnumerable<T> QueryBySql<T>(string sql, params SqlParameter[] parameters);
    }
  
}
